//
// Created by wkm on 2023-12-04.
//

#ifndef MYSYSTEMCLEARNING_GENERIC_AND_H
#define MYSYSTEMCLEARNING_GENERIC_AND_H

#include "systemc.h"

template<int size>
SC_MODULE(generic_and) {
    sc_in<sc_uint<size> > a;
    sc_out<bool> z;

    void pre_generic_and();

    SC_CTOR(generic_and) {
        SC_METHOD(pre_generic_and);
        sensitive << a;
    }
};

#endif //MYSYSTEMCLEARNING_GENERIC_AND_H
